package online.heycm.multipledb.domain.order.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author heycm
 * @since 2022-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_log")
public class OrderLogEntity extends Model<OrderLogEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id")
    private Long orderId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 应付
     */
    private BigDecimal totalMoney;

    /**
     * 实付
     */
    private BigDecimal payMoney;


    @Override
    public Serializable pkVal() {
        return this.orderId;
    }

}
